x86: make vcpu_destroy_pagetables() preemptible
authorJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:34:21 +0000 (16:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:34:21 +0000 (16:34 +0200)
commit6cdc9be2a5f2a87b4504404fbf648d16d9503c19
tree57244e0df782cc38467cf1045314806967c72ba9
parent9626d1c1fafe2da5af6e59478c9e9db6d03144df
x86: make vcpu_destroy_pagetables() preemptible

... as it may take significant amounts of time.

The function, being moved to mm.c as the better home for it anyway, and
to avoid having to make a new helper function there non-static, is
given a "preemptible" parameter temporarily (until, in a subsequent
patch, its other caller is also being made capable of dealing with
preemption).

This is part of CVE-2013-1918 / XSA-45.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/arch/x86/x86_64/compat/mm.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/mm.h